home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1725 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: lifl.lifl.fr!karpf
  2. From: karpf@lifl.lifl.fr (Karpf_Sylvain)
  3. Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.sys.ibm.pc.hardware.video,comp.sys.ibm.pc.hardware.misc,comp.sys.ibm.pc.misc
  4. Subject: Re: malloc'ing 1.5MB of memory
  5. Date: 16 Jan 1996 16:54:37 GMT
  6. Organization: Laboratoire d'Informatique Fondamentale de Lille
  7. Distribution: world
  8. Message-ID: <4dgl8d$ren@netserver.univ-lille1.fr>
  9. References: <4culvu$612@stc06.ctd.ornl.gov> <DL0HqJ.7H4@rug.nl> <4dg7l4$n1h@bright.ecs.soton.ac.uk>
  10. NNTP-Posting-Host: bass.lifl.fr
  11.  
  12. In article <4dg7l4$n1h@bright.ecs.soton.ac.uk>, mat92@ecs.soton.ac.uk (Mark Tranchant) writes:
  13. |> In <DL0HqJ.7H4@rug.nl> Herman Dullink <csg669@wing.rug.nl> writes:
  14. |> 
  15. |> >forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman) wrote:
  16. |> >>Can anyone tell me how to grab a 1.5 MB chunk of PC memory?  I've got a
  17. |> >>VideoBlaster card and some C code they gave me.  But I want to use the
  18. |> >>full screen (800x600) at 24 bit color.  This means I have to have this
  19. |> >>much space to have the routine dump the data into.  The machine I'm
  20. |> >>using is a 486 with 16MB of memory.  This must be a DOS limitation?
  21. |> >>I'm using MS C 6.0 and calling halloc();
  22. |> >It's probably the limitation of MS C's halloc().
  23. |> 
  24. |> >>Any suggestions?
  25. |> 
  26. |> 
  27. |> Use linux instead. Free compiler (gcc), free OS, fully 32-bit.
  28. |> ptr = malloc(1572864).
  29. |> 
  30. |> It is heaven after DOS programming - the only disadvantage is the lack of a
  31. |> nice, user-friendly IDE.
  32. |> 
  33. |> Learning the SVGAlib routines would be a bit of a sod, however: unless you
  34. |> are directly driving the hardware. 
  35. |> 
  36. |> Mark.
  37. |> 
  38.  
  39.  
  40. You can use dos and the gcc compiler (32 bits compiler) together with the go32
  41. Dos-Extender. 
  42.  
  43.  
  44. -- 
  45. Sylvain Karpf
  46.  
  47. Laboratoire d'Informatique Fondamentale de Lille
  48. Bat M3
  49. Universite des Sciences et Technologies de Lille
  50. 59655 VILLENEUVE D'ASCQ CEDEX
  51. FRANCE
  52.  
  53. Phone : +33 20 43 65 57
  54. Fax   : +33 20 43 65 66
  55. email : karpf@lifl.fr
  56.